package com.sac.approval.service.impl;

import com.sac.approval.dao.DelegateMappingDao;
import com.sac.approval.domain.DelegateMappingDO;
import com.sac.approval.service.DelegateMappingService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;



@Service
public class DelegateMappingServiceImpl implements DelegateMappingService {
	@Autowired
	private DelegateMappingDao delegateMappingDao;
	
	@Override
	public DelegateMappingDO get(String userId,String agentUserId){
		return delegateMappingDao.get(userId,agentUserId);
	}

	@Override
	public DelegateMappingDO getValidDelegate(String userId) {
		return delegateMappingDao.getValidDelegate(userId);
	}

	@Override
	public List<DelegateMappingDO> list(Map<String, Object> map){
		return delegateMappingDao.list(map);
	}

	@Override
	public List<String> getAgentUserIdList(Map<String, Object> map) {
		return delegateMappingDao.getAgentUserIdList(map);
	}

	@Override
	public int count(Map<String, Object> map){
		return delegateMappingDao.count(map);
	}
	
	@Override
	public int save(DelegateMappingDO delegateMapping){
		return delegateMappingDao.save(delegateMapping);
	}
	
	@Override
	public int update(DelegateMappingDO delegateMapping){
		return delegateMappingDao.update(delegateMapping);
	}
	
	@Override
	public int remove(String userId){
		return delegateMappingDao.remove(userId);
	}
	
	@Override
	public int batchRemove(String[] userIds){
		return delegateMappingDao.batchRemove(userIds);
	}
	
}
